﻿using GraphProcessor;
using IQIGame.Onigao.Logic;

namespace IQIGame.Onigao.GamePlay.Editors
{
    [System.Serializable, NodeMenuItem(SkillEditorConst.SkillEffective + "/" + SkillEditorConst.Package + "/" + SkillEditorConst.ExtendBuffDuration, typeof(SkillEditorGraph))]
    public class EffectivePackageNode_ExtendBuffDuration: EffectivePackageNode_Base
    {
        protected override ESkillEffectiveType actionType => ESkillEffectiveType.ExtendBuffDuration;

        [Input("BuffID")] public SkillEffectiveAction_ParamNum buffID;
        [Input("时间")] public SkillEffectiveAction_ParamNum extend;
        
        protected override SkillCustomConfig CreateConfig()
        {
            var rConfig = new SkillEffectiveAction_ExtendBuffDuration_ConfigData()
            {
                buffID = this.buffID,
                extend = this.extend,
            };
            return rConfig;
        }
    }
}